<template>
  <div class="all">
    <nuxt/>
  </div>
</template>
<script>
  import TavNav from '../components/common/tabNav'
  import { mapGetters, mapActions } from 'Vuex'

  const Cookie = process.browser ? require('js-cookie') : undefined

  export default {
    components: { TavNav },
    computed: {
      ...mapGetters([
        'sid',
        'user'
      ])
    },
    mounted() {
      // 自动登录后保存 token
      if (this.sid) {
        Cookie.set('sid', this.sid)
      }
      if (this.user) {
        Cookie.set('user', this.user)
      }
    }
  }
</script>
<style>
  .page-loadmore-wrapper {
    height: 100%;
    overflow: scroll;
  }


  .mint-actionsheet-listitem, .mint-actionsheet-button {
    height: 100px;
    line-height: 100px;
  }
</style>

